<?php
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=訂單資料.xls");
?>
  <table widtd="100%" align="center"  border="1" cellpadding="3" cellspacing="1" class="table_style">
  

    <tr>
      <td>訂單編號</td>
      <td>團購項目</td>
      <td>訂單金額</td>
      <td>付款方式</td>
      <td>下單日期</td>
      <td>會員名稱</td>
      <td>總數量</td>         
	  


    </tr>
	<?php if(is_array($dataarray)){foreach($dataarray as $value){?>
    <tr class="odd_row">
      <td><?php echo $value['order_sn']?></td>
      <td><?php echo $value['gtitle']?></td>
      <td><?php echo $value['order_total_price']?></td>
      <td><?php echo $value['payment_name']?></td>
      <td><?php echo date("Y-m-d H:i",$value['order_addtime'])?></td>
      <td><?php echo $value['uname']?></td>      
	   <td><?php echo $value['num']?></td>
     
	
    </tr>
	<?php }}else{?>
	<tr><td colspan=10>暫無數據..............</td></tr>
	<?php };?>
  </table>
  
